/*
 * @Description: 
 * @Author: yyh
 * @Date: 2022-03-30 00:43:28
 * @LastEditors: yyh
 * @LastEditTime: 2022-05-16 01:35:39
 */
var express = require("express");
var router = express.Router();
var borrowing = require("../controllers/borrowingController");

//新增资产借用接口
router.post("/addBorrowingInfo",borrowing.addBorrowingInfo);
//修改资产借用接口
router.post("/updateBorrowingInfo",borrowing.updateBorrowingInfo);
//修改资产借用状态接口
router.post("/updateBorrowingStatus",borrowing.updateBorrowingStatus);
//删除资产借用接口
router.get("/deleteBorrowing",borrowing.deleteBorrowing);
//模糊查询、分页查询资产借用接口
router.get("/getBorrowingInfo",borrowing.getBorrowingInfo);
//通过id查询资产借用信息接口
router.get("/getBorrowingInfoById",borrowing.getBorrowingInfoById);

module.exports = router;